%module alglib_ext
%{
#include "ap.h"
#include "alglib_util.h"
#include "iostream"

%}

%include "typemaps.i"
%apply int *OUTPUT {int& info};
%apply int *INPUT {int& nvars};
%apply int *INPUT {int& nvars};
%apply int *INPUT {int& nclasses};
%apply double *INPUT {double &bothtails};
%apply double *INPUT {double &lefttail};
%apply double *INPUT {double &righttail};


%include "ap.i"
%include "correlation.i"
%include "correlationtests.i"
%include "linreg.i"
%include "logit.i"
